package com.bawei.hgshop.pojo;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户
 * @author 45466
 *
 */
public class User implements Serializable {
	
/**
	 * 
	 */
	private static final long serialVersionUID = 298627980224776166L;
private Integer  uid           ;
private String  username      ;
private String  password      ;
private String  name          ;
private String  email         ;
private String  telephone     ;

private Date  birthday      ;
private String  sex           ;
private String  state         ;
private String  code          ;


public Integer getUid() {
	return uid;
}
public void setUid(Integer uid) {
	this.uid = uid;
}
public String getUsername() {
	return username;
}
public void setUsername(String username) {
	this.username = username;
}
public String getPassword() {
	return password;
}
public void setPassword(String password) {
	this.password = password;
}
public String getName() {
	return name;
}
public void setName(String name) {
	this.name = name;
}
public String getEmail() {
	return email;
}
public void setEmail(String email) {
	this.email = email;
}
public String getTelephone() {
	return telephone;
}
public void setTelephone(String telephone) {
	this.telephone = telephone;
}
public Date getBirthday() {
	return birthday;
}
public void setBirthday(Date birthday) {
	this.birthday = birthday;
}
public String getSex() {
	return sex;
}
public void setSex(String sex) {
	this.sex = sex;
}
public String getState() {
	return state;
}
public void setState(String state) {
	this.state = state;
}
public String getCode() {
	return code;
}
public void setCode(String code) {
	this.code = code;
}
@Override
public String toString() {
	return "User [uid=" + uid + ", username=" + username + ", password=" + password + ", name=" + name + ", email="
			+ email + ", telephone=" + telephone + ", sex=" + sex + ", state=" + state + ", code=" + code + "]";
}
@Override
public int hashCode() {
	final int prime = 31;
	int result = 1;
	result = prime * result + ((uid == null) ? 0 : uid.hashCode());
	result = prime * result + ((username == null) ? 0 : username.hashCode());
	return result;
}
@Override
public boolean equals(Object obj) {
	if (this == obj)
		return true;
	if (obj == null)
		return false;
	if (getClass() != obj.getClass())
		return false;
	User other = (User) obj;
	if (uid == null) {
		if (other.uid != null)
			return false;
	} else if (!uid.equals(other.uid))
		return false;
	if (username == null) {
		if (other.username != null)
			return false;
	} else if (!username.equals(other.username))
		return false;
	return true;
}



}
